﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QMap>

QT_BEGIN_NAMESPACE
namespace Ui
{
class MainWindow;
}
QT_END_NAMESPACE

class QtProperty;
class QtVariantProperty;
class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private:
    void demo1();
    void demo2();
    void demo3();
    void demo4();
    void demo5();
    void demo6();

private slots:
    void variantPropertyValueChanged(QtProperty *property, const QVariant &value);
    void variantPropertyValueChanged2(QtProperty *property, const QVariant &value);

private:
    Ui::MainWindow *ui;

private:
    QMap<QtProperty *, QString> m_property_dic;
    QMap<QtProperty *, QString> m_property_dic2;
    QList<QtVariantProperty *> m_listProperty;
};
#endif // MAINWINDOW_H
